package com.jevons.muffin.vm;

import android.content.Intent;

import androidx.lifecycle.MutableLiveData;

import com.jevons.muffin.event.BaseActionEvent;


/**
 *
 * 定义一般UI行为
 * @auth linaisheng
 * Created on 2021/6/29.
 * Description：
 */
public interface IViewModelAction {

    void showLoading();

    void showLoading(boolean isCanBack);

    void showLoading(String message);

    void showLoading(String loadingMsg, boolean isCanBack);

    void hideLoading();

    void showToast(String message);

    void finish();

    void finishWithResultOk();

    void startActivity(Class clz);

    void startActivity(Intent intent);

    void startActivity(Intent intent, boolean isFinishActivity);

    MutableLiveData<BaseActionEvent> getActionLiveData();

}
